package com.xnck.example.jertest.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * ServletRequest监听器测试类
 */
//@WebListener
public class TestRequestListener implements ServletRequestListener {

    /**
     * 初始化
     */
    @Override
    public void requestInitialized(ServletRequestEvent servletRequestEvent) {
        System.out.println("一个新的请求");
    }

    /**
     * 销毁
     */
    @Override
    public void requestDestroyed(ServletRequestEvent servletRequestEvent) {
        System.out.println("销毁一个请求");
    }
}
